// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
// 导入状态机 默认加载里面的index.js文件
import store from './store'

Vue.config.productionTip = false

// 使用sessionStorage localStorage
// 获取到对象
let session = window.sessionStorage;
session.setItem("name", "李寻欢");
let name = session.getItem("name");

let local = window.localStorage;
local.setItem("gander", "男");
let gander = local.getItem("gander");

console.log(name, local);


/* eslint-disable no-new */
new Vue({
    el: '#app',
    router,
    //将状态机挂载到vue实例上
    store,
    components: { App },
    template: '<App/>'
})